gdkwindow-wayland: Pair a ref with its owner
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 19 Jun 2014 18:33:35 +0000 (14:33 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 19 Jun 2014 18:56:17 +0000 (14:56 -0400)
gdk/wayland/gdkwindow-wayland.c

index a9a2dc6ff203e2dec837a63fcbd88a66887e134f..4d151678fd88068289025408b343bdd7bebc1cc7 100644 (file)
@@ -602,7 +602,7 @@ gdk_wayland_window_configure (GdkWindow *window,
   display = gdk_window_get_display (window);
 
   event = gdk_event_new (GDK_CONFIGURE);
-  event->configure.window = window;
+  event->configure.window = g_object_ref (window);
   event->configure.send_event = FALSE;
   event->configure.width = width;
   event->configure.height = height;
@@ -610,8 +610,6 @@ gdk_wayland_window_configure (GdkWindow *window,
   gdk_wayland_window_update_size (window, width, height);
   _gdk_window_update_size (window);
 
-  g_object_ref(window);
-
   _gdk_wayland_display_deliver_event (display, event);
 }